import '../../common/common.less';
import './index.less';
import '../../common/common.js';
import $tool from '../../common/tool.js'

$(function () {
  //加载语言包
  $tool.loadProperties(res=>{
    let html = [];
    html.forEach(item=>{
        $("."+item).html($.i18n.prop(item))
    })
  });
  var status = $tool.getQuery("status");
  if(status == 1) {
    $('#fail').css("display", "none");
    $('.bottom-bar p').text("儲值成功，請進入游戲領取");
  } else {
    $('#success').css("display", "none");
    $('.bottom-bar p').text("儲值失敗，請聯係客服");
  }

  $('#continue').click(function() {
    location.href = './pay.html';
  });

  $('#logout').click(function() {
    localStorage.clear();
    location.href = './pay.html';
  });
});